Skip to content

Introduce Fuzzing with jsFuzz and fix issues found by fuzzing #176

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 4, 2021
Merged

Conversation

gfx
Copy link
Member

@gfx gfx commented May 4, 2021

Fixes

  • Make Decoder#decode only to raise DecodeError and DataViewIndexOutOfBoundsError

TypeScript

  • Adding require("ts-node/register") in the fuzzing script allows to test TypeScript source files directly, but Iit spends extra time and memory, so it should be avoided to save computing resources

@codecov-commenter
Copy link

codecov-commenter commented May 4, 2021

Codecov Report

Merging #176 (ae09f48) into main (8b1e562) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #176   +/-   ##
=======================================
  Coverage   98.12%   98.13%           
=======================================
  Files          15       16    +1     
  Lines         961      964    +3     
  Branches      207      207           
=======================================
+ Hits          943      946    +3     
  Misses         18       18           
Impacted Files Coverage Δ
src/DecodeError.ts 100.00% <100.00%> (ø)
src/Decoder.ts 99.16% <100.00%> (-0.02%) ⬇️
src/index.ts 100.00% <100.00%> (ø)
src/timestamp.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8b1e562...ae09f48. Read the comment docs.

@gfx gfx merged commit c66d264 into main May 4, 2021
@gfx gfx deleted the jsfuzz branch May 4, 2021 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants